package com.cloud.api.myenum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum RefundStatusEnum implements IEnum<Integer> {

    WAIT_VERIFY(0,"待审核"),

    NOT_VERIFIED(1,"审核不通过"),

    WAIT_SHIP(2,"用户待发货"),

    DELIVERED(3,"用户已发货"),

    MERCHANT_REJECTION(4,"商家拒收"),

    REFUNDING(5,"退款中"),

    REFUND_SUCCESS(6,"退款成功"),

    REFUND_FAIL(7,"退款失败");

    RefundStatusEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;
    @EnumValue
    @JsonValue
    private String desc;

    @Override
    public Integer getValue() {
        return this.value;
    }
}
